package com.gao.String;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class StringDemo2 {
    /*
            String类的替换方法：

                public String replace(CharSequence target, CharSequence replacement)
                                      参数1：旧值
                                      参数2：新值
     */
    public static void main(String[] args) {
        String s ="sasa";
        String result = s.replace("sa","as");
        System.out.println(result);
    }
}
